﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Lswweb.SqlServerDAL
{
    public abstract class BaseDAL<TEntity>
    {
        private string tableName;
        private string identityFieldName;

        public BaseDAL(string tableName,string identityFieldName)
        {
            this.tableName=tableName;
            this.identityFieldName=identityFieldName;
        }

        public TEntity FindBy(object id)
        {
            throw new NotImplementedException();
        }

        protected abstract IDataParameter[] GetParametersByEntity();

        protected abstract TEntity BuilderEntity(Hashtable hastTable);
    }
}
